<script>
    $(function(){
        $(".alert").on('click',function(){
            console.log("tap");
            $(this).remove();
        });
    })
</script>
<switch name="alert.status">
    <case value="0">
        <div class="alert alert-danger" style="text-align:center;">{$alert.msg}</div>
    </case>
    <case value="1">
        <div class="alert alert-success" style="text-align:center;">{$alert.msg}</div>
    </case>
</switch>